import Vue from 'vue'
import Router from 'vue-router'
import Login from '@/components/Login'
import Home from '@/components/Home'
import List from '@/components/List'
import Role from '@/components/Role'
import Permiss from '@/components/Permiss'
import Goods from '@/components/Goods'
import Addgoods from '@/components/Addgoods'
import Class from '@/components/Class'
import Goodspoints from '@/components/Goodspoints'
import Order from '@/components/Order'
import Report from '@/components/Report'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name:'Login',
      component: Login
    },
    {
      path:'/Home',
      name:'Home',
      component:Home,
      children:
      [
        {
          path:"/List",
          name:"List",
          component:List
        },
        {
          path:"/Role",
          name:"Role",
          component:Role
        },
        {
          path:"/Permiss",
          name:"Permiss",
          component:Permiss
        },
        {
          path:"/Goods",
          name:"Goods",
          component:Goods
        },
        {
          path:'/Addgoods',
          name:"Addgoods",
          component:Addgoods
        },
        {
          path:'/Class',
          name:"Class",
          component:Class
        },
        {

          path:'/Goodspoints',
          name:"Goodspoints",
          component:Goodspoints
        },
        {
          path:'/Order',
          name:"Order",
          component:Order
        },
        {
          path:'/Report',
          name:"Report",
          component:Report
        }
      ]
    }
  ]
})
